package com.yuven.appframework.widget.titlebar

import android.content.Context
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.NonNull
import com.yuven.appframework.widget.titlebar.OnTileClickListener

/**
 * 
 *
 * @author :        Yuven
 * @date :          2021/7/30 9:57 上午
 * @desc :
 */
interface ITitleBar {

    fun getTitleTextView():TextView?
    fun getLeftIcon():ImageView?
    fun getLeftTextView():TextView?
    fun getRightTextView():TextView?
    fun getRightIcon():ImageView?
    fun setOnTitleBarListener(listener: OnTileClickListener)

    interface Factory{
        fun createTitleBarView(context: Context):View?
        fun getTitleTextView(context:Context):TextView?
        fun getTitleIcon(context: Context?): ImageView?
        fun getLeftTextView(context:Context):TextView?
        fun getLeftIcon(context:Context):ImageView?
        fun getRightTextView(context:Context):TextView?
        fun getRightIcon(context:Context): ImageView?
        fun getBottomLine(context: Context): View?
        fun getTitleBarHeight(): Int?
    }
}